package com.open.capacity.recuritment.Dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.open.capacity.common.model.SysRole;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @description:
 * @date:2021/5/21 下午4:14
 * @author:jxy
 */
@Data
public class IndustryDto implements Serializable {
    private Long uiId;//用户行业职位id
    @TableField(exist = false)
    private String industry;
    @TableField(exist = false)
    private String position;
    //***************************
    private static final long serialVersionUID = -5886012896705137070L;
    @TableId(value = "id", type = IdType.ASSIGN_ID)  //雪花算法  id生成策略
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String username;
    private String password;
    @TableField(value = "nick_name")
    private String nickname;
    @TableField(value = "head_img_url")
    private String headImgUrl;
    private String phone;
    private Integer sex;
    private Boolean enabled;

    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private List<SysRole> roles;

    @TableField(exist = false)
    private String roleId;

    @TableField(exist = false)
    private String oldPassword;
    @TableField(exist = false)
    private String newPassword;

    //新增字段

    private String type;
    //1.账号类型
    @TableField(value = "account_type")
    private Integer accountType;
    //2.是否被推荐
    private Integer recommended;
    //3.是否就业
    private Integer employed;

    // 解释就业状态用 无映射代替dto
    @TableField(exist = false)
    private String employedStatus;
}
